package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.mapper.SalechanceMapper;
import com.wanda.po.Salechance;
import com.wanda.po.SalechanceExample;
import com.wanda.service.SaleChanceService;

@Service("saleChanceService")
public class SaleChanceServiceImpl implements SaleChanceService{

	@Autowired
	private SalechanceMapper salechanceMapper;
	
	public int insert(Salechance record) {
		int n = salechanceMapper.insert(record);
		return n;
	}

	public List<Salechance> selectByExample(SalechanceExample example) {
		// TODO Auto-generated method stub
		return salechanceMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		int n = salechanceMapper.deleteByPrimaryKey(id);
		return n;
	}

	public int updateByPrimaryKey(Salechance record) {
		int n = salechanceMapper.updateByPrimaryKey(record);
		return n;
	}

	public Salechance selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return salechanceMapper.selectByPrimaryKey(id);
	}

}
